<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/18
 * Time: 10:47
 */

namespace app\admin\validate;


use app\api\validate\BaseValidate;

class SpecialContent extends BaseValidate
{
    protected $rule = [
        'title' => 'require|unique:special_content',
        'description' => 'require',
        'author' => 'require',
        'content' => 'require',
    ];

    protected $message = [
        'title.require' => '文章标题不能为空',
        'title.unique' => '文章标题不能重复',
        'description.require' => '简介不能为空',
        'author.require' => '发布人不能为空',
        'content.require' => '文章内容不能为空',
    ];
}